package example.controller;

import example.dto.ExportExcelDTO;
import example.service.ISecondmentService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletResponse;

@RestController
@RequestMapping("/api/exp")
public class ExportInformationController {

    @Resource
    private ISecondmentService secondmentService;

    @PostMapping("/excel")
    public void export(@RequestBody ExportExcelDTO exportExcelDTO, HttpServletResponse response){
        secondmentService.export(exportExcelDTO, response);
    }
}
